//
//  NSObject+SYTest.m
//  SYPerfectDemo
//
//  Created by Lssyyy on 2018/11/20.
//  Copyright © 2018年 Lssyyy. All rights reserved.
//

#import "NSObject+SYTest.h"

@implementation NSObject (SYTest)
- (void)setName:(NSString *)name{
    objc_setAssociatedObject(self, "abc", name, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
- (NSString *)name{
    return objc_getAssociatedObject(self, "abc");
}
@end
